Optimal. Leaf size=98 \[ \frac{x e^{-\frac{a}{b n}} \left (c x^n\right )^{-1/n} \text{Ei}\left (\frac{a+b \log \left (c x^n\right )}{b n}\right )}{2 b^3 n^3}-\frac{x}{2 b^2 n^2 \left (a+b \log \left (c x^n\right )\right )}-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0524806, antiderivative size = 98, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {2297, 2300, 2178} \[ \frac{x e^{-\frac{a}{b n}} \left (c x^n\right )^{-1/n} \text{Ei}\left (\frac{a+b \log \left (c x^n\right )}{b n}\right )}{2 b^3 n^3}-\frac{x}{2 b^2 n^2 \left (a+b \log \left (c x^n\right )\right )}-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2297
Rule 2300
Rule 2178
Rubi steps
\begin{align*} \int \frac{1}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx &=-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2}+\frac{\int \frac{1}{\left (a+b \log \left (c x^n\right )\right )^2} \, dx}{2 b n}\\ &=-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2}-\frac{x}{2 b^2 n^2 \left (a+b \log \left (c x^n\right )\right )}+\frac{\int \frac{1}{a+b \log \left (c x^n\right )} \, dx}{2 b^2 n^2}\\ &=-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2}-\frac{x}{2 b^2 n^2 \left (a+b \log \left (c x^n\right )\right )}+\frac{\left (x \left (c x^n\right )^{-1/n}\right ) \operatorname{Subst}\left (\int \frac{e^{\frac{x}{n}}}{a+b x} \, dx,x,\log \left (c x^n\right )\right )}{2 b^2 n^3}\\ &=\frac{e^{-\frac{a}{b n}} x \left (c x^n\right )^{-1/n} \text{Ei}\left (\frac{a+b \log \left (c x^n\right )}{b n}\right )}{2 b^3 n^3}-\frac{x}{2 b n \left (a+b \log \left (c x^n\right )\right )^2}-\frac{x}{2 b^2 n^2 \left (a+b \log \left (c x^n\right )\right )}\\ \end{align*}
Mathematica [A] time = 0.113674, size = 82, normalized size = 0.84 \[ \frac{x \left (e^{-\frac{a}{b n}} \left (c x^n\right )^{-1/n} \text{Ei}\left (\frac{a+b \log \left (c x^n\right )}{b n}\right )-\frac{b n \left (a+b \log \left (c x^n\right )+b n\right )}{\left (a+b \log \left (c x^n\right )\right )^2}\right )}{2 b^3 n^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.268, size = 460, normalized size = 4.7 \begin{align*} -{\frac{2\,bnx+i\pi \,bx{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-i\pi \,bx{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -i\pi \,bx \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+i\pi \,bx \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +2\,\ln \left ( c \right ) bx+2\,bx\ln \left ({x}^{n} \right ) +2\,ax}{ \left ( 2\,a+2\,b\ln \left ( c \right ) +2\,b\ln \left ({x}^{n} \right ) +ib\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-ib\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) \right ) ^{2}{b}^{2}{n}^{2}}}-{\frac{1}{2\,{b}^{3}{n}^{3}}{{\rm e}^{-{\frac{ib\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-ib\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -2\,\ln \left ( x \right ) bn+2\,b\ln \left ( c \right ) +2\,b\ln \left ({x}^{n} \right ) +2\,a}{2\,bn}}}}{\it Ei} \left ( 1,-\ln \left ( x \right ) -{\frac{ib\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-ib\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+ib\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +2\,b\ln \left ( c \right ) +2\,b \left ( \ln \left ({x}^{n} \right ) -n\ln \left ( x \right ) \right ) +2\,a}{2\,bn}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{b x \log \left (x^{n}\right ) +{\left (b{\left (n + \log \left (c\right )\right )} + a\right )} x}{2 \,{\left (b^{4} n^{2} \log \left (c\right )^{2} + b^{4} n^{2} \log \left (x^{n}\right )^{2} + 2 \, a b^{3} n^{2} \log \left (c\right ) + a^{2} b^{2} n^{2} + 2 \,{\left (b^{4} n^{2} \log \left (c\right ) + a b^{3} n^{2}\right )} \log \left (x^{n}\right )\right )}} + \int \frac{1}{2 \,{\left (b^{3} n^{2} \log \left (c\right ) + b^{3} n^{2} \log \left (x^{n}\right ) + a b^{2} n^{2}\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.761523, size = 489, normalized size = 4.99 \begin{align*} -\frac{{\left ({\left (b^{2} n^{2} x \log \left (x\right ) + b^{2} n x \log \left (c\right ) +{\left (b^{2} n^{2} + a b n\right )} x\right )} e^{\left (\frac{b \log \left (c\right ) + a}{b n}\right )} -{\left (b^{2} n^{2} \log \left (x\right )^{2} + b^{2} \log \left (c\right )^{2} + 2 \, a b \log \left (c\right ) + a^{2} + 2 \,{\left (b^{2} n \log \left (c\right ) + a b n\right )} \log \left (x\right )\right )} \logintegral \left (x e^{\left (\frac{b \log \left (c\right ) + a}{b n}\right )}\right )\right )} e^{\left (-\frac{b \log \left (c\right ) + a}{b n}\right )}}{2 \,{\left (b^{5} n^{5} \log \left (x\right )^{2} + b^{5} n^{3} \log \left (c\right )^{2} + 2 \, a b^{4} n^{3} \log \left (c\right ) + a^{2} b^{3} n^{3} + 2 \,{\left (b^{5} n^{4} \log \left (c\right ) + a b^{4} n^{4}\right )} \log \left (x\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (a + b \log{\left (c x^{n} \right )}\right )^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.32889, size = 1326, normalized size = 13.53 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]